# @Time : 2022/7/28 16:18
# @Author : zhangzhihui
# @Email : mrzhangzh@gmail.com

from django.urls import path
from forum import views
from django.conf.urls.static import static
from django.conf import settings
from forum.views import article

# app_name = 'forum'
urlpatterns = [
    path('forum_home', views.ForumHome.as_view(), name='forum_home'),
    path('forum_details', views.ForumDetails.as_view()),
    path('forum_like_view', views.ForumLikeView.as_view()),
    path('forum_collection_view', views.ForumCollectionView.as_view()),
    path('article', article, name='article'),
    path('forum_comment_view', views.ForumCommentView.as_view()),
    path('forum_release_view', views.ForumReleaseView.as_view()),
    path('forum_popular_view', views.ForumPopularView.as_view()),
    path('forum_competitive_view', views.ForumWatchedView.as_view()),
    path('forum_creator_center_view', views.CreatorCenter.as_view()),
    path('print_report.html', views.print_report.as_view()),                   # 用印报表
    path('print_report_echart.html', views.print_report_echart.as_view()),      # 用印报表 图表
    path('middle_level_echart.html', views.middle_level_echart.as_view()),          # 中层干部外出报表
    path('SuperiorOfficial.html', views.SuperiorOfficial.as_view()),          # 上级来文报表
    path('TravelReport.html', views.TravelReport.as_view()),            # 差旅报销报表
    path('LeaveReport.html', views.LeaveReport.as_view()),              # 请假报表
    path('OfficialDocumentReport.html', views.OfficialDocumentReport.as_view()),  # 公文报表
    path('VotingManagement.html', views.VotingManagement.as_view()),  # 投票管理
    path('VotingStatistics.html', views.VotingStatistics.as_view()),  # 投票统计
    path('select_flow', views.select_flow.as_view()),
    path('DocumentReport.html', views.DocumentReport.as_view()),
    path('SurveyQuestionnaire.html', views.SurveyQuestionnaire.as_view()),
    path('ResearchStatistics.html', views.ResearchStatistics.as_view()),
    path('confirm_summit', views.confirm_summit.as_view()),            # 用印批量汇总
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)